package com.bw.mapper;

import com.bw.domain.UserAddress;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
* @author ASUS
* @description 针对表【user_address】的数据库操作Mapper
* @createDate 2024-06-12 09:09:04
* @Entity com.bw.domain.UserAddress
*/
//dao 层方法
@Mapper
public interface UserAddressMapper {

    //查询用户信息
    List<UserAddress> getList( String addres, String name);
//删除用户信息
    @Delete("delete from user_address where id=#{id}")
    int del(int id);
//添加用户信息
    @Insert("INSERT INTO user_address VALUES(null, #{userId},#{phone},#{provinceId},#{cityId},#{districtId},#{complexId},#{address},#{isDefault},#{createTime},#{updateTime},#{isDeleted})")
    int add(UserAddress userAddress);
}




